import enum
from sqlalchemy import Column, String, Integer, Enum
from .base import Base


class UserRole(enum.Enum):
    NORMAL_USER = 1
    POWER_USER = 2


class User(Base):
    __tablename__ = "user"

    id = Column(Integer, primary_key=True)
    name = Column(String, index=True)
    role = Column(Enum(UserRole), default=UserRole.NORMAL_USER)
